﻿using System;
using System.Web;
using ZhangBY.VTemplate.Engine;

namespace ZhangBY.Web.test
{
    public partial class _2 : System.Web.UI.Page
    {

        public string user = "ADMIN";
        public string[] Arr =new  string[]{"AA","BB","CC","DD","EE" };
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        protected void Unnamed1_Click(object sender, System.EventArgs e)
        {
            try
            {
                
                TemplateDocument document = new TemplateDocument(Server.MapPath("~/2.htm"), System.Text.Encoding.Default);
                document.Variables.SetValue("user", user);
                document.Variables.SetValue("Arr", Arr);
                document.Variables.SetValue("no","20");
                document.Render(Response.Output);
            }
            catch(Exception ex) { }

        }

    }
    
}